﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Walking.Master" CodeBehind="gettingstarted.aspx.vb" Inherits="walkingweb.gettingstarted" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
        Walking is the closest thing to perfect exercise. All you need is a good pair of 
        shoes, comfortable clothing, and desire. Encouraging more walking can deliver 
        benefits not only to public health and sustainable transport but to the economy 
        and social life.</p>
    <p>
        Browse all articles on walking:<asp:GridView ID="getstarted" runat="server" 
            AutoGenerateColumns="False" DataKeyNames="PostID" 
            DataSourceID="getstartedarticles" BorderStyle="None" BorderWidth="0px" 
            CellPadding="10" CellSpacing="5" GridLines="Horizontal" Width="50%">
            <Columns>
                <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" >
                <ControlStyle BorderStyle="None" BorderWidth="0px" />
                <HeaderStyle BorderStyle="None" BorderWidth="0px" Font-Size="Small" 
                    HorizontalAlign="Left" />
                <ItemStyle BorderStyle="None" BorderWidth="0px" Font-Size="Small" 
                    HorizontalAlign="Left" Width="50%" />
                </asp:BoundField>
                <asp:HyperLinkField DataNavigateUrlFields="PostID" 
                    DataNavigateUrlFormatString="article.aspx?PostID={0}" DataTextField="PostID" 
                    DataTextFormatString="read more" >
                <ControlStyle BorderStyle="None" BorderWidth="0px" />
                <HeaderStyle BorderStyle="None" BorderWidth="0px" Font-Size="Small" 
                    HorizontalAlign="Left" />
                <ItemStyle BorderWidth="0px" HorizontalAlign="Center" Width="15%" />
                </asp:HyperLinkField>
                <asp:BoundField DataField="DatePosted" HeaderText="Date Posted" 
                    SortExpression="DatePosted" >
                <HeaderStyle BorderStyle="None" BorderWidth="0px" Font-Size="Small" 
                    HorizontalAlign="Left" />
                <ItemStyle BorderStyle="None" BorderWidth="0px" Font-Italic="True" 
                    Font-Size="Small" HorizontalAlign="Left" Width="20%" />
                </asp:BoundField>
            </Columns>
            <EditRowStyle BorderStyle="None" Font-Size="Small" Height="15px" />
            <RowStyle BorderWidth="0px" Font-Size="Small" Height="12px" />
        </asp:GridView>
        <asp:SqlDataSource ID="getstartedarticles" runat="server" 
            ConnectionString="<%$ ConnectionStrings:walkingweb %>" 
            ProviderName="<%$ ConnectionStrings:walkingweb.ProviderName %>" 
            SelectCommand="SELECT * FROM [posts] WHERE ([CategoryID_fk] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter DefaultValue="1" Name="CategoryID_fk" 
                    QueryStringField="CategoryID_fk" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <p>
        &nbsp;</p>
</asp:Content>
